/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ffm.mtfw.tests.classes;

import br.com.ffm.mtfw.classes.Tenant;
import br.com.ffm.mtfw.interfaces.TenantUser;
import br.com.ffm.mtfw.interfaces.Tenantable;

/**
 *
 * @author matheus
 */
@TenantUser(tableName = "EMAIL")
public class Email implements Tenantable {

    private int codigo;
    private String email;
    private Tenant tenant;

    public Email(Tenant tenant) {
        this.tenant = tenant;
    }

    public Email(int codigo, String email, Tenant tenant) {
        this.codigo = codigo;
        this.email = email;
        this.tenant = tenant;
    }

    public int getCodigo() {
        return codigo;
    }

    public String getEmail() {
        return email;
    }

    @Override
    public Tenant getTenant() {
        return tenant;
    }
}
